<template>
  <div class="classification">
    <allFenlei v-for="index in 5" :key="index" @click="handlFenlei(index)"></allFenlei>
  </div>
</template>

<script>
import allFenlei from '@/components/video-box/all-fenlei'
import { useRouter } from 'vue-router'
export default {
  components: {
    allFenlei
  },
  setup() {
    const router = useRouter()
    const handlFenlei = (row) => {
      // console.log(row)
      switch (row) {
        case 1:
          router.push({ name: 'classify' })
          break;
        case 2:
          console.log(row);
          break
      }
    }
    return {
      handlFenlei
    }
  }
}
</script>

<style lang="scss" scoped>
.classification {
  display: flex;
  justify-content: space-between;
  background-color: aqua;
}
</style>
